home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_22558.txt < prev    next >
Text File  |  1991-02-27  |  1KB  |  22 lines

  1. -- card: 22558 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 6
  9. ----- text -----
  10. 2.1  Basic Types
  11.  
  12. -- part contents for background part 7
  13. ----- text -----
  14. 51
  15.  
  16. -- part contents for background part 4
  17. ----- text -----
  18. Only 3 basic data types are available in C:  INTEGERS, CHARACTERS, and FLOATING-POINT (REAL) NUMBERS.  These types may be further specified according to the size or accuracy desired.  Both VARIABLES and CONSTANTS of these types may be defined.
  19.  
  20. The IDENTIFIER for a C variable - like that for a function - is any non-reserved sequence of letters (case is significant!), digits, and underscore (_) characters, with the restriction that the first character cannot be a digit and in general should not be an underscore.  There is no restriction to the length of an identifier, although ANSI C compilers may ignore characters beyond the 31st.  Commonly multi-word identifiers are described by using underscores (average_of_grades) to separate words or by beginning each new word with a capital letter (averageOfGrades).  It is customary never to begin a variable identifier with a capital letter.
  21.  
  22.